gdk_surface_freeze_updates (surface);
_gdk_x11_surface_grab_check_unmap (surface, xevent->xany.serial);
+
+ if (GDK_PROFILER_IS_RUNNING)
+ gdk_profiler_add_markf (g_get_monotonic_time (), 0, "Unmapped window", "0x%lx", GDK_SURFACE_XID (surface));
}
return_val = FALSE;
if (toplevel)
gdk_surface_thaw_updates (surface);
+
+ if (GDK_PROFILER_IS_RUNNING)
+ {
+ gdk_profiler_end_markf (surface_impl->map_time, "Mapped window", "0x%lx", GDK_SURFACE_XID (surface));
+ surface_impl->map_time = 0;
+ }
}
return_val = FALSE;
GdkToplevelX11 *toplevel;
Display *xdisplay = GDK_SURFACE_XDISPLAY (surface);
Window xwindow = GDK_SURFACE_XID (surface);
+ GdkX11Surface *impl = GDK_X11_SURFACE (surface);
if (!already_mapped)
set_initial_hints (surface);
display_x11->user_time != 0 &&
XSERVER_TIME_IS_LATER (display_x11->user_time, toplevel->user_time))
gdk_x11_surface_set_user_time (surface, display_x11->user_time);
-
+
+ if (GDK_PROFILER_IS_RUNNING)
+ {
+ if (impl->map_time == 0)
+ impl->map_time = g_get_monotonic_time ();
+ }
+
XMapWindow (xdisplay, xwindow);
/* Fullscreen on current monitor is the default, no need to apply this mode